package cn.com.dhcc.turbo.entity.stat.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.stat.FreqStat;

public class FreqStatRowWapper implements RowMapper<FreqStat>{

	@Override
	public FreqStat mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		FreqStat vo = new FreqStat();
		vo.setRecvStValue(rs.getString("recv_st_value"));
		vo.setSendStValue(rs.getString("send_st_value"));
		vo.setRecvNodeName(rs.getString("recv_node_name"));
		vo.setRecvSysName(rs.getString("recv_sys_name"));
		vo.setOrderVal(rs.getString("orderval"));
		return vo;
	}

}
